package com.wkbb.basic.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生表
 * b_student
 * @author Lxc
 * @date 2019-07-01 13:57:32
 */
@Data
public class Student implements Serializable {

    @ApiModelProperty(value = "用户类型 1学生 2家长 3其他")
    private Integer userType;
    @ApiModelProperty(value = "学校编号")
    private Long schoolId;
    @ApiModelProperty(value = "学校")
    private String orgName;
    @ApiModelProperty(value = "年级")
    private String gradeName;
    @ApiModelProperty(value = "班级")
    private String className;
    @ApiModelProperty(value = "是否自动创建")
    private Boolean autoCreate;

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号")
    private Long id;

    /**
     * 组织ID
     */
    @ApiModelProperty(value = "组织ID")
    private Long orgId;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /**
     * 年级
     */
    @ApiModelProperty(value = "年级")
    private Long gradeId;

    /**
     * 班级
     */
    @ApiModelProperty(value = "班级")
    private Long classId;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    private String mobile;

    /**
     * 卡号
     */
    @ApiModelProperty(value = "卡号")
    private Object cardNo;

    /**
     * 状态(0无效1有效)
     */
    @ApiModelProperty(value = "状态(0无效1有效)")
    private Boolean status;

    @ApiModelProperty(value = "学号")
    private String studentNo;

    /**
     * 入园时间
     */
    @ApiModelProperty(value = "入园时间")
    @JSONField(format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date enterDate;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	
	private Long oldUserId;

    /**
     * 智慧校园用户ID
     */
    @ApiModelProperty(value = "智慧校园用户ID")
    private String smartUserId;

    @ApiModelProperty(value = "备注")
    private String remark;
}